//
//  CoreFileLogger.m
//  BabyThermometer
//
//  Created by CaiLei on 10/2/14.
//  Copyright (c) 2014 baohu. All rights reserved.
//

#import "CoreFileLogger.h"

@implementation CoreFileLogger
- (void)logMessage:(DDLogMessage *)logMessage
{
    if (logMessage->logFlag & (LOG_FLAG_ERROR | LOG_FLAG_DEBUG))
    {
        dispatch_async(dispatch_get_global_queue(0, 0), ^{
            [super logMessage:logMessage];
        });
    }
}

@end
